package EntityPack;

import MapPack.Cell;
import MaterialPack.Fluid;
import MapPack.Map;
import MaterialPack.IPortable;
import ToolPack.FluidContainer;
import com.badlogic.gdx.graphics.Texture;

/**
 * Created by Aaron on 8/13/2014.
 */
public class StorageTank extends Structure implements IPortable {
    private FluidContainer tank;
    private static Texture texture = new Texture("StorageTank32.png");
    private static final int height = 1;
    private static final int width = 1;

    public StorageTank(float capacity, float transferRate, Class<? extends Fluid> fluidType, float initialFluid) {
        super(height, width);
        this.tank = new FluidContainer(
                capacity,
                transferRate,
                fluidType,
                initialFluid);
        this.containers.add(tank);
    }

    public StorageTank (Map map, Cell position, float capacity, float transferRate, Class<? extends Fluid> fluidType, float initialFluid) {
        super(map, position, height, width);
        this.tank = new FluidContainer(
                capacity,
                transferRate,
                fluidType,
                initialFluid);
        this.containers.add(tank);
    }

    /*
    public boolean transfer (Container receiver) {
        boolean result = false;
        this.removeFromMap();
        return result;
    }
    */

    public Texture getTexture ( ) {
        return this.texture;
    }
}
